package com.zhehekeji.opsys.api.entity;

// Generated 2016-3-11 10:21:54 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TVoteUser generated by hbm2java
 */
@Entity
@Table(name="t_vote_user")
public class TVoteUser implements java.io.Serializable {

	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = -8016919773583735025L;
	private Long id;
	private String userId;
	private TVoteGame tvoteGame;
	private String productCodes;
	private String productVotes;
	private Integer canVotes;
	private Integer remainVotes;
	private Date createTime;
	private Date updateTime;
	private Integer status;
	private Long cpCode;
	private Integer voteBase;
	private Integer voteQrcode;
	private Integer epgType;
	public TVoteUser() {
	}
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="USER_ID",length=64,nullable=true)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.EAGER,optional=true)
	@JoinColumn(name="VOTE_ID")
	public TVoteGame getTvoteGame() {
		return tvoteGame;
	}

	public void setTvoteGame(TVoteGame tvoteGame) {
		this.tvoteGame = tvoteGame;
	}
	@Column(name="PRODUCT_CODES",nullable=true)
	public String getProductCodes() {
		return productCodes;
	}

	public void setProductCodes(String productCodes) {
		this.productCodes = productCodes;
	}
	@Column(name="PRODUCT_VOTES",nullable=true)
	public String getProductVotes() {
		return productVotes;
	}
	public void setProductVotes(String productVotes) {
		this.productVotes = productVotes;
	}
	@Column(name="CAN_VOTES",length=11,nullable=true)
	public Integer getCanVotes() {
		return this.canVotes;
	}

	public void setCanVotes(Integer canVotes) {
		this.canVotes = canVotes;
	}
	@Column(name="REMAIN_VOTES",length=11,nullable=true)
	public Integer getRemainVotes() {
		return remainVotes;
	}

	public void setRemainVotes(Integer remainVotes) {
		this.remainVotes = remainVotes;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATE_TIME")
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name="STATUS",length=2,nullable=true)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	@Column(name="CP_CODE",length=20,nullable=true)
	public Long getCpCode() {
		return this.cpCode;
	}

	public void setCpCode(Long cpCode) {
		this.cpCode = cpCode;
	}
	@Column(name="VOTE_BASE",length=11,nullable=true)
	public Integer getVoteBase() {
		return voteBase;
	}
	public void setVoteBase(Integer voteBase) {
		this.voteBase = voteBase;
	}
	@Column(name="VOTE_QRCODE",length=11,nullable=true)
	public Integer getVoteQrcode() {
		return voteQrcode;
	}
	public void setVoteQrcode(Integer voteQrcode) {
		this.voteQrcode = voteQrcode;
	}
	@Column(name="EPG_TYPE",length=2,nullable=true)
	public Integer getEpgType() {
		return epgType;
	}
	public void setEpgType(Integer epgType) {
		this.epgType = epgType;
	}

}
